<div ng-include src="'tpl/public/header.html'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">消息列表</li>
  </ol>
  
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="50px">ID</th>
        <th width="150px">消息标题</th>
        <th>消息副标题</th>
        <th width="280px">消息地址</th>
        <th width="70px">发送方式</th>
        <th width="125px">操作时间</th>
        <th width="125px">发送时间</th>
        <th width="60px">发送状态</th>
        <th width="70px">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="n in newsList">
        <td>{{n.id}}</td>
        <td>{{n.fpJpushTitle}}</td>
        <td>{{n.fpJpushContent}}</td>
        <td>{{n.fpJpushRedrict}}</td>
        <td>{{n.fpJpushSendType | newsSendType}}</td>
        <td>{{n.updateDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{n.fpJpushSendTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{n.fpJpushSendStatus | newsStatusRender}}</td>
        <td>
          <a ng-show="n.fpJpushSendStatus == '01'" href="#/news/add?id={{n.id}}">编辑</a>
          <a ng-show="n.fpJpushSendStatus == '01'" ng-click="deleteNews(n.id)" href="javascript:">删除</a>
        </td>
      </tr>
    </tbody>
  </table>
  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="newsList.length > 0"></div>
</div>
